package com.lucker.service.user;

import org.springframework.http.ResponseEntity;

import com.lucker.cds.model.CMUser;
import com.lucker.common.request.RequestContext;
import com.lucker.common.request.RequestHeader;
import com.lucker.ds.model.MUser;
import com.lucker.ds.model.SysCheckCode;
import com.lucker.service.BaseService;

public interface MuserService extends BaseService<MUser , Long> {
	
	public int registerUser(MUser muser,String code);
	
	
	/***
	 * 用户登录接口
	 * @param ct
	 * @return 当前登录用户
	 */
	public CMUser login(MUser user,RequestHeader requestHeader) ;
	
	
	
	/***
	 * 
	 * @param userName
	 * @param pass
	 * @return 根据用户名 密码查找用户,暂时从数据库中查询,后面改造这个方法从REDIS获取
	 */
	public MUser getUserByUserNamePass(String userName);
	
	
	
	public ResponseEntity<?> checkCodeLogin(SysCheckCode checkCode, RequestHeader header);
}
